package com.ruoyi.lvlian.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;
import java.util.List;
@ApiModel(value = "图表传参", description = "图表传参")
@Data
@ToString
public class ChartDataDto {
    private List<String> orgCodes;
    @ApiModelProperty(value = "分类", required = true)  // 在Swagger文档中标识为必填
    @NotBlank(message = "分类不能为空")  // 验证不能为空或空字符串
    private String category;
}
